import request  from "@/utils/request.js"

export const rpostlistServer = (params) =>{
    return request.get('/rpost/list',{params:params})
}

export const jiajingServer = (id) =>{
    return request.patch('/rpost/jia/'+id)
}

export const delrpostServer = (id) =>{
    return request.delete('/rpost/del/'+id)
}

export const rpostsidServer = (mid) =>{
    return request.get('/rpost/rposts/' + mid)
}

export const addServer = (addData) =>{
    const params = new URLSearchParams();
    for (let key in addData){
          params.append(key,addData[key]);
    }
    return request.post('/rpost/add',params)
}